using Orchard.ContentManagement;
using Orchard.Layouts.Settings;

namespace Orchard.Layouts.Models
{
    public class ElementWrapperPart : ContentPart
    {
        public string ElementTypeName => TypePartDefinition.Settings.GetModel<ElementWrapperPartSettings>().ElementTypeName;

        public string ElementData
        {
            get { return this.Retrieve(x => x.ElementData, versioned: true, defaultValue: this.Retrieve(x => x.ElementData)); }
            set { this.Store(x => x.ElementData, value, versioned: true); }
        }
    }
}